package org.baitu.zzim.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zhangkai_a
 * @date 2025/7/1 14:53
 */
@Component
@ConfigurationProperties(prefix = "netty")
@Data
public class NettyProperties {

    private int port = 8080;
    private String serviceName;
    private int bossThreads = 1;
    private int workerThreads = 8;
    private int backlog = 1024;
    private boolean keepAlive = true;
    private String websocketPath = "/ws";
    private boolean useProtobuf = false;

}